#ifndef __COMMUART_H__
#define __COMMUART_H__

#include "commbase.h"
#include "soc/interface/if_soc_uart.h"

class CommUart : public CommBase
{
public:
    explicit CommUart();
    virtual ~CommUart();

public:
    void Config(IF_SOC_Uart *uart, IProtocol *protocol);
    void OnWriteStream(uint8_t *data, int len);

private:
    IF_SOC_Uart *m_uart = nullptr;
};

#endif // __COMMUART_H__
